import React, { Component } from 'react'
import Far from './Far'
//1. 引入context
import context from './context'
// 2. 在传递数据的组件中,使用context.Provider.用来包裹整个jsx结构
const { Provider } = context
export default class App extends Component {
  render() {
    return (
      <Provider value={'五百万'}>
        App
        <hr />
        <Far></Far>
      </Provider>
    )
  }
}
